package com.hqyj.purchase.service;

import com.hqyj.purchase.model.PurchaseInfo;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;

/**
 * @author qianyexiuci
 * @date 2021/09/06 14:18
 */
public interface PurchaseService {
    List<PurchaseInfo> queryAllPurchaseInfo();

    int updatePurchase(PurchaseInfo purchaseInfo, String provider, int price);

    int deletePurchase(int id);

    PurchaseInfo queryPurchaseInfoById(int id);

    void updatePurchase(PurchaseInfo purchaseInfo);

    void addPurchaseInfo(PurchaseInfo purchaseInfo);

    ArrayList<PurchaseInfo> queryAllNotPurchase();
}
